package com.hy.db.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by wayne on 17/12/25.
 */
@Data
public class BaseEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3892544472829702224L;
	/**
     * 主键id
     */
    protected long id;
    /**
     * 状态
     * tinyint
     */
    protected int status;
    /**
     * 创建时间
     * datetime
     */
    protected Date createTime;
    /**
     * 修改时间
     * timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
     */
    protected Date updateTime;

    protected long createId;

    protected long updateId;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public long getCreateId() {
		return createId;
	}

	public void setCreateId(long createId) {
		this.createId = createId;
	}

	public long getUpdateId() {
		return updateId;
	}

	public void setUpdateId(long updateId) {
		this.updateId = updateId;
	}
}
